package com.mybatis.service;

import com.mybatis.bean.Employee;
import com.mybatis.mapper.EmployeeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmployeeServiceImpl implements EmployeeService{

    @Autowired
    private EmployeeDao employeeDao;

    public List<Employee> getListByLastName(String lastName) {
        return employeeDao.getListByLastName(lastName);
    }
}
